What is basis for my fair lady?

My Fair Lady is a musical based on George Bernard Shaw's play Pygmalion. The book and lyrics were written by Alan Jay Lerner and the music was composed by Frederick Loewe. The musical premiered on Broadway in 1956 and became one of the most popular and successful musicals of all time, winning numerous awards, including six Tony Awards and three Academy Awards for the film adaptation. The story follows the transformation of Eliza Doolittle, a Cockney flower seller, into a sophisticated lady under the tutelage of phonetics professor Henry Higgins. The musical explores themes of social class, gender roles, and the power of language and education. The iconic songs from the musical, including "Wouldn't It Be Loverly," "I Could Have Danced All Night," and "Get Me to the Church on Time," have become staples of American musical theater.